package com.hotelmanage.manage.entities;


import javax.persistence.Entity;
import javax.persistence.Id;

@Entity

public class Student {
    public String name;
    @Id
    public long studentId;
    public String sex;
    public long phone;

    public Student() {
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", studentId=" + studentId +
                ", sex='" + sex + '\'' +
                ", phone=" + phone +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getStudentId() {
        return studentId;
    }

    public void setStudentId(long studentId) {
        this.studentId = studentId;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public long getPhone() {
        return phone;
    }

    public void setPhone(long phone) {
        this.phone = phone;
    }

    public Student(String name, long studentId, String sex, long phone) {
        this.name = name;
        this.studentId = studentId;
        this.sex = sex;
        this.phone = phone;
    }
}
